8384088: osThread _thread_id should be an int on all BSD's#31070
8384088: osThread _thread_id should be an int on all BSD's#31070snake66 wants to merge 3 commits into
Conversation
The initializer for the _thread_id member in hotspot/os/bsd/osThread_bsd.cpp is incorrect for BSD's other than macOS. It should be an integer on all BSD's. This work is sponsored by The FreeBSD Foundation
|
👋 Welcome back haraldei! A progress list of the required criteria for merging this PR into |
|
@snake66 This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 98 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@Arraying, @dholmes-ora) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
Webrevs
|
Arraying
left a comment
There was a problem hiding this comment.
IIUC, pid_t is actually __pid_t which is an __int32_t on FreeBSD. I checked OpenBSD and NetBSD as well (these are the ones we have macros for) and it's the same there. Seems like a reasonable change to me, thank you!
This work is sponsored by The FreeBSD Foundation
| #include "runtime/mutex.hpp" | ||
| #include "runtime/osThread.hpp" | ||
|
|
||
| #include <signal.h> |
There was a problem hiding this comment.
I did not see it being used by the code.
There was a problem hiding this comment.
Line 40: sigemptyset(&_caller_sigmask);
There was a problem hiding this comment.
Man! How could I miss that!
I'll put it back in :)
This work is sponsored by The FreeBSD Foundation
Arraying
left a comment
There was a problem hiding this comment.
Sorry, was on vacation. LGTM.
No worries, vacation is important! :) Thanks for the reviews @Arraying and @dholmes-ora! |
|
/integrate |
|
/sponsor |
|
Going to push as commit e9bc05c.
Your commit was automatically rebased without conflicts. |
The initializer for the _thread_id member in hotspot/os/bsd/osThread_bsd.cpp is incorrect for BSD's other than macOS. It should be an integer on all BSD's.
This work is sponsored by The FreeBSD Foundation
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31070/head:pull/31070$ git checkout pull/31070Update a local copy of the PR:
$ git checkout pull/31070$ git pull https://git.openjdk.org/jdk.git pull/31070/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31070View PR using the GUI difftool:
$ git pr show -t 31070Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31070.diff
Using Webrev
Link to Webrev Comment